package svc

import (
	"github.com/vueadmin/app/cron/internal/config"
	"github.com/vueadmin/initialize"
	"go.uber.org/zap"
)

type ServiceContext struct {
	Config config.Config
	Log    *zap.SugaredLogger
}

func NewServiceContext(c config.Config) *ServiceContext {
	log := initialize.MuestNewLog()
	return &ServiceContext{
		Config: c,
		Log:    log,
	}
}
